package com.keywaysoft.workflow.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zhaojx
 */
@Data
@ApiModel("任务查询传参类")
public class FindTaskByAssigneeDTO {
    @ApiModelProperty(value="候选人或者当前用户",example = "zhangsan")
    @NotBlank(message="候选人或者当前用户，不能为空")
    private String assignee;

    @ApiModelProperty(value="候选组，多个候选组以逗号分隔",example = "总经理,人事")
    private String groups;

    @ApiModelProperty(value="审批人类型：0 候选人 1 候选组，为1时groups参数不能为空",example = "0")
    private Integer type;

    @ApiModelProperty(value="流程定义key",example = "xxx")
    private String key;

    @ApiModelProperty(value="页码",example = "1")
    private Integer pageNum;

    @ApiModelProperty(value="每页条数",example = "10")
    private Integer pageSize;

    @ApiModelProperty(value="是否获取自定义参数 0不获取 1获取",example = "0")
    private Integer isGetParam;


}
